import styles from './index.less';
import { UploadOutlined } from '@ant-design/icons';
import { Upload, Button } from 'antd';
import React, { useState, useRef } from 'react';
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';

export default function IndexPage() {
  return (
    <div>
      <PageContainer>
        <Upload
          action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
          listType="picture"
        >
          <Button icon={<UploadOutlined />}>Upload</Button>
        </Upload>
      </PageContainer>
      <FooterToolbar>首页</FooterToolbar>
    </div>
  );
}
